Set Up the Virtual Appliance to Accept USB Flash Drives on an Operational VM - Proxmox VE Procedure

Before you begin

Prepare the Virtual Appliance to accept USB flash drives.
  1. Format the flash drive to FAT32.
  2. Insert the flash drive into a USB port on the host.
    Note

    Note

    A USB device is required to be plugged in before it can be added to a virtual machine.

About this task

The Virtual Appliance can accept USB flash drives. The flash drive can be used for backing up, restoring, upgrading, and collecting log information. A USB drive can be inserted, assigned to a virtual appliance, and removed from the virtual appliance while the appliance is in service.

To set up the VM to accept an USB flash drive when it is operational:

Procedure

  1. Log in to the Proxmox GUI.
  2. In the left pane, select the VM from the KVM server host name.
  3. Select Monitor.
  4. In the CLI, type info usbhost to display the list of USB devices available on the host.
  5. Type the following commands:

    device_add nec-usb-xhci,id=xhci,bus=pci.1,addr=0x1b

    device_add usb-host,bus=xhci.0,vendorid=0x125f,productid=0xc08a,id=usb0

    Note

    Note

    The vendorid and productid arguments need to match the flash drive vendor or device ID from the info usbhost output.

    Adjust the addr field depending on the devices already defined on the PCI bus.

    Click to expand in new window
    info usbhost screen.
  6. Type info usb to verify that the USB device was properly attached to the VM.